import junit.framework.TestCase;

public class JUnitElement extends TestCase {

	public static void main(String[] args) {
		junit.textui.TestRunner.run(JUnitElement.class);
	}

	/** Test method for 'Element.getCol()' */
	public void testGetCol()
	{
		Element a = new Element(3,4.5);
		assertEquals(a.getCol(),3);
	}

	/** Test method for 'Element.setCol(int)'*/
	public void testSetCol()
	{
		Element a = new Element(1,2);
		a.setCol(6);
		assertEquals(a.getCol(),6);
	}

	/** Test method for 'Element.getData()'*/
	public void testGetData()
	{
		Element a = new Element(3,4.5);
		assertEquals(a.getData(),4.5);
	}

	/** Test method for 'Element.setData(int)'*/
	public void testSetData()
	{
		Element a = new Element(3,4.5);
		a.setData(12);
		assertEquals(a.getCol(),3);
	}

	/**Test method for 'Element.print()'*/
	public void testPrint()
	{
		Element a = new Element(3,4.5);
		assertEquals(a.print(),""+a.getCol()+":"+a.getData());
	}

}
